package cn.tedu.medicalmanagementsystem.manager.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class UpdateNoticeParam {
    @ApiModelProperty(value = "公告ID", required = true)
    @NotNull(message = "公告ID不能为空")
    private Long id;

    @ApiModelProperty(value = "公告标题", required = true)
    @NotBlank(message = "公告标题不能为空")
    @Length(max = 200, message = "公告标题长度不能超过200个字符")
    private String title;

    @ApiModelProperty(value = "公告内容", required = true)
    @NotBlank(message = "公告内容不能为空")
    @Length(max = 2000, message = "公告内容长度不能超过2000个字符")
    private String content;

    @ApiModelProperty(value = "公告浏览数量", hidden = true)
    private Integer viewCount;

    @ApiModelProperty(value = "公告推送时间", hidden = true)
    private Date publishTime;
}
